/************************************************************
**                                                         **
** FILE: PAD_Defs.h                                        **
**                                                         **
** DESCRIPTION:PAD definitions for easy compression        **
**                                                         **
** VERSION: 1.0                                            **
**                                                         **
** AUTOR: Emmanuel Sigala                                  **
**                                                         **
** DATE: 27/September/2012                                 **
**                                                         **
************************************************************/


/*********************************************
Genaral purpose input output definitions    **
of PORTA                                    **
*********************************************/
//#define Dummy SIU.GPDI[0].B.PDI          //PA[0]
//#define Dummy SIU.GPDO[0].B.PDO          //PA[0]
//#define Dummy SIU.GPDI[1].B.PDI          //PA[1]
//#define Dummy SIU.GPDO[1].B.PDO          //PA[1]
//#define Dummy SIU.GPDI[2].B.PDI          //PA[2]
//#define Dummy SIU.GPDO[2].B.PDO          //PA[2]
//#define Dummy SIU.GPDI[3].B.PDI          //PA[3]
//#define Dummy SIU.GPDO[3].B.PDO          //PA[3]
//#define Dummy SIU.GPDI[4].B.PDI          //PA[4]
//#define Dummy SIU.GPDO[4].B.PDO          //PA[4]
//#define Dummy SIU.GPDI[5].B.PDI          //PA[5]
//#define Dummy SIU.GPDO[5].B.PDO          //PA[5]
//#define Dummy SIU.GPDI[6].B.PDI          //PA[6]
//#define Dummy SIU.GPDO[6].B.PDO          //PA[6]
//#define Dummy SIU.GPDI[7].B.PDI          //PA[7]
//#define Dummy SIU.GPDO[7].B.PDO          //PA[7]
//#define Dummy SIU.GPDI[8].B.PDI          //PA[8]
//#define Dummy SIU.GPDO[8].B.PDO          //PA[8]
//#define Dummy SIU.GPDI[9].B.PDI          //PA[9]
//#define Dummy SIU.GPDO[9].B.PDO          //PA[9]
//#define Dummy SIU.GPDI[10].B.PDI          //PA[10]
//#define Dummy SIU.GPDO[10].B.PDO          //PA[10]
//#define Dummy SIU.GPDI[11].B.PDI          //PA[11]
//#define Dummy SIU.GPDO[11].B.PDO          //PA[11]
//#define Dummy SIU.GPDI[12].B.PDI          //PA[12]
//#define Dummy SIU.GPDO[12].B.PDO          //PA[12]
//#define Dummy SIU.GPDI[13].B.PDI          //PA[13]
//#define Dummy SIU.GPDO[13].B.PDO          //PA[13]
//#define Dummy SIU.GPDI[14].B.PDI          //PA[14]
//#define Dummy SIU.GPDO[14].B.PDO          //PA[14]
//#define Dummy SIU.GPDI[15].B.PDI          //PA[15]
//#define Dummy SIU.GPDO[15].B.PDO          //PA[15]

/*********************************************
Genaral purpose input output definitions    **
of PORTB                                    **
*********************************************/
//#define Dummy SIU.GPDI[16].B.PDI          //PB[0]
#define EN_RIGHT_MOTOR SIU.GPDO[16].B.PDO          //PB[0]
//#define Dummy SIU.GPDI[17].B.PDI          //PB[1]
#define EN_LEFT_MOTOR SIU.GPDO[17].B.PDO          //PB[1]
//#define Dummy SIU.GPDI[18].B.PDI          //PB[2]
//#define Dummy SIU.GPDO[18].B.PDO          //PB[2]
//#define Dummy SIU.GPDI[19].B.PDI          //PB[3]
//#define Dummy SIU.GPDO[19].B.PDO          //PB[3]
//#define Dummy SIU.GPDI[20].B.PDI          //PB[4]
//#define Dummy SIU.GPDO[20].B.PDO          //PB[4]
//#define Dummy SIU.GPDI[21].B.PDI          //PB[5]
//#define Dummy SIU.GPDO[21].B.PDO          //PB[5]
//#define Dummy SIU.GPDI[22].B.PDI          //PB[6]
//#define Dummy SIU.GPDO[22].B.PDO          //PB[6]
//#define Dummy SIU.GPDI[23].B.PDI          //PB[7]
//#define Dummy SIU.GPDO[23].B.PDO          //PB[7]
//#define Dummy SIU.GPDI[24].B.PDI          //PB[8]
//#define Dummy SIU.GPDO[24].B.PDO          //PB[8]
//#define Dummy SIU.GPDI[25].B.PDI          //PB[9]
//#define Dummy SIU.GPDO[25].B.PDO          //PB[9]
//#define Dummy SIU.GPDI[26].B.PDI          //PB[10]
//#define Dummy SIU.GPDO[26].B.PDO          //PB[10]
//#define Dummy SIU.GPDI[27].B.PDI          //PB[11]
#define CAM_START SIU.GPDO[27].B.PDO          //PB[11]
//#define Dummy SIU.GPDI[28].B.PDI          //PB[12]
//#define Dummy SIU.GPDO[28].B.PDO          //PB[12]
//#define Dummy SIU.GPDI[29].B.PDI          //PB[13]
#define CAM_CLK SIU.GPDO[29].B.PDO          //PB[13]
//#define Dummy SIU.GPDI[30].B.PDI          //PB[14]
//#define Dummy SIU.GPDO[30].B.PDO          //PB[14]
//#define Dummy SIU.GPDI[31].B.PDI          //PB[15]
//#define Dummy SIU.GPDO[31].B.PDO          //PB[15]

/*********************************************
Genaral purpose input output definitions    **
of PORTC                                    **
*********************************************/
//#define Dummy SIU.GPDI[32].B.PDI          //PC[0]
//#define Dummy SIU.GPDO[32].B.PDO          //PC[0]
//#define Dummy SIU.GPDI[33].B.PDI          //PC[1]
//#define Dummy SIU.GPDO[33].B.PDO          //PC[1]
//#define Dummy SIU.GPDI[34].B.PDI          //PC[2]
//#define Dummy SIU.GPDO[34].B.PDO          //PC[2]
//#define Dummy SIU.GPDI[35].B.PDI          //PC[3]
//#define Dummy SIU.GPDO[35].B.PDO          //PC[3]
//#define Dummy SIU.GPDI[36].B.PDI          //PC[4]
//#define Dummy SIU.GPDO[36].B.PDO          //PC[4]
//#define Dummy SIU.GPDI[37].B.PDI          //PC[5]
//#define Dummy SIU.GPDO[37].B.PDO          //PC[5]
//#define Dummy SIU.GPDI[38].B.PDI          //PC[6]
//#define Dummy SIU.GPDO[38].B.PDO          //PC[6]
//#define Dummy SIU.GPDI[39].B.PDI          //PC[7]
//#define Dummy SIU.GPDO[39].B.PDO          //PC[7]
//#define Dummy SIU.GPDI[40].B.PDI          //PC[8]
//#define Dummy SIU.GPDO[40].B.PDO          //PC[8]
//#define Dummy SIU.GPDI[41].B.PDI          //PC[9]
//#define Dummy SIU.GPDO[41].B.PDO          //PC[9]
//#define Dummy SIU.GPDI[42].B.PDI          //PC[10]
//#define Dummy SIU.GPDO[42].B.PDO          //PC[10]
//#define Dummy SIU.GPDI[43].B.PDI          //PC[11]
//#define Dummy SIU.GPDO[43].B.PDO          //PC[11]
//#define Dummy SIU.GPDI[44].B.PDI          //PC[12]
//#define Dummy SIU.GPDO[44].B.PDO          //PC[12]
//#define Dummy SIU.GPDI[45].B.PDI          //PC[13]
//#define Dummy SIU.GPDO[45].B.PDO          //PC[13]
//#define Dummy SIU.GPDI[46].B.PDI          //PC[14]
//#define Dummy SIU.GPDO[46].B.PDO          //PC[14]
//#define Dummy SIU.GPDI[47].B.PDI          //PC[15]
//#define Dummy SIU.GPDO[47].B.PDO          //PC[15]

/*********************************************
Genaral purpose input output definitions    **
of PORTD                                    **
*********************************************/
//#define Dummy SIU.GPDI[48].B.PDI          //PD[0]
//#define Dummy SIU.GPDO[48].B.PDO          //PD[0]
//#define Dummy SIU.GPDI[49].B.PDI          //PD[1]
//#define Dummy SIU.GPDO[49].B.PDO          //PD[1]
//#define Dummy SIU.GPDI[50].B.PDI          //PD[2]
//#define Dummy SIU.GPDO[50].B.PDO          //PD[2]
//#define Dummy SIU.GPDI[51].B.PDI          //PD[3]
//#define Dummy SIU.GPDO[51].B.PDO          //PD[3]
//#define Dummy SIU.GPDI[52].B.PDI          //PD[4]
//#define Dummy SIU.GPDO[52].B.PDO          //PD[4]
//#define Dummy SIU.GPDI[53].B.PDI          //PD[5]
//#define Dummy SIU.GPDO[53].B.PDO          //PD[5]
//#define Dummy SIU.GPDI[54].B.PDI          //PD[6]
//#define Dummy SIU.GPDO[54].B.PDO          //PD[6]
//#define Dummy SIU.GPDI[55].B.PDI          //PD[7]
//#define Dummy SIU.GPDO[55].B.PDO          //PD[7]
//#define Dummy SIU.GPDI[56].B.PDI          //PD[8]
//#define Dummy SIU.GPDO[56].B.PDO          //PD[8]
//#define Dummy SIU.GPDI[57].B.PDI          //PD[9]
//#define Dummy SIU.GPDO[57].B.PDO          //PD[9]
//#define Dummy SIU.GPDI[58].B.PDI          //PD[10]
//#define Dummy SIU.GPDO[58].B.PDO          //PD[10]
//#define Dummy SIU.GPDI[59].B.PDI          //PD[11]
//#define Dummy SIU.GPDO[59].B.PDO          //PD[11]
//#define Dummy SIU.GPDI[60].B.PDI          //PD[12]
//#define Dummy SIU.GPDO[60].B.PDO          //PD[12]
//#define Dummy SIU.GPDI[61].B.PDI          //PD[13]
//#define Dummy SIU.GPDO[61].B.PDO          //PD[13]
//#define Dummy SIU.GPDI[62].B.PDI          //PD[14]
//#define Dummy SIU.GPDO[62].B.PDO          //PD[14]
//#define Dummy SIU.GPDI[63].B.PDI          //PD[15]
//#define Dummy SIU.GPDO[63].B.PDO          //PD[15]

/*********************************************
Genaral purpose input output definitions    **
of PORTE                                    **
*********************************************/
#define PUSH_1 SIU.GPDI[64].B.PDI          //PE[0]
//#define Dummy SIU.GPDO[64].B.PDO           //PE[0]
#define PUSH_2 SIU.GPDI[65].B.PDI          //PE[1]
//#define Dummy SIU.GPDO[65].B.PDO           //PE[1]
#define PUSH_3 SIU.GPDI[66].B.PDI          //PE[2]
//#define Dummy SIU.GPDO[66].B.PDO           //PE[2]
#define PUSH_4 SIU.GPDI[67].B.PDI          //PE[3]
//#define Dummy SIU.GPDO[67].B.PDO           //PE[3]
//#define Dummy SIU.GPDI[68].B.PDI           //PE[4]
#define LED_1 SIU.GPDO[68].B.PDO           //PE[4]
//#define Dummy SIU.GPDI[69].B.PDI           //PE[5]
#define LED_2 SIU.GPDO[69].B.PDO           //PE[5]
//#define Dummy SIU.GPDI[70].B.PDI           //PE[6]
#define LED_3 SIU.GPDO[70].B.PDO           //PE[6]
//#define Dummy SIU.GPDI[71].B.PDI           //PE[7]
#define LED_4 SIU.GPDO[71].B.PDO           //PE[7]
//#define Dummy SIU.GPDI[72].B.PDI          //PE[8]
//#define Dummy SIU.GPDO[72].B.PDO          //PE[8]
//#define Dummy SIU.GPDI[73].B.PDI          //PE[9]
//#define Dummy SIU.GPDO[73].B.PDO          //PE[9]
//#define Dummy SIU.GPDI[74].B.PDI          //PE[10]
//#define Dummy SIU.GPDO[74].B.PDO          //PE[10]
//#define Dummy SIU.GPDI[75].B.PDI          //PE[11]
//#define Dummy SIU.GPDO[75].B.PDO          //PE[11]
//#define Dummy SIU.GPDI[76].B.PDI          //PE[12]
//#define Dummy SIU.GPDO[76].B.PDO          //PE[12]
//#define Dummy SIU.GPDI[77].B.PDI          //PE[13]
//#define Dummy SIU.GPDO[77].B.PDO          //PE[13]
//#define Dummy SIU.GPDI[78].B.PDI          //PE[14]
//#define Dummy SIU.GPDO[78].B.PDO          //PE[14]
//#define Dummy SIU.GPDI[79].B.PDI          //PE[15]
//#define Dummy SIU.GPDO[79].B.PDO          //PE[15]

/*********************************************
Genaral purpose input output definitions    **
of PORTF                                    **
*********************************************/
//#define Dummy SIU.GPDI[80].B.PDI          //PF[0]
//#define Dummy SIU.GPDO[80].B.PDO          //PF[0]
//#define Dummy SIU.GPDI[81].B.PDI          //PF[1]
//#define Dummy SIU.GPDO[81].B.PDO          //PF[1]
//#define Dummy SIU.GPDI[82].B.PDI          //PF[2]
//#define Dummy SIU.GPDO[82].B.PDO          //PF[2]
//#define Dummy SIU.GPDI[83].B.PDI          //PF[3]
//#define Dummy SIU.GPDO[83].B.PDO          //PF[3]
//#define Dummy SIU.GPDI[84].B.PDI          //PF[4]
//#define Dummy SIU.GPDO[84].B.PDO          //PF[4]
//#define Dummy SIU.GPDI[85].B.PDI          //PF[5]
//#define Dummy SIU.GPDO[85].B.PDO          //PF[5]
//#define Dummy SIU.GPDI[86].B.PDI          //PF[6]
//#define Dummy SIU.GPDO[86].B.PDO          //PF[6]
//#define Dummy SIU.GPDI[87].B.PDI          //PF[7]
//#define Dummy SIU.GPDO[87].B.PDO          //PF[7]
//#define Dummy SIU.GPDI[88].B.PDI          //PF[8]
//#define Dummy SIU.GPDO[88].B.PDO          //PF[8]
//#define Dummy SIU.GPDI[89].B.PDI          //PF[9]
//#define Dummy SIU.GPDO[89].B.PDO          //PF[9]
//#define Dummy SIU.GPDI[90].B.PDI          //PF[10]
//#define Dummy SIU.GPDO[90].B.PDO          //PF[10]
//#define Dummy SIU.GPDI[91].B.PDI          //PF[11]
//#define Dummy SIU.GPDO[91].B.PDO          //PF[11]
//#define Dummy SIU.GPDI[92].B.PDI          //PF[12]
//#define Dummy SIU.GPDO[92].B.PDO          //PF[12]
//#define Dummy SIU.GPDI[93].B.PDI          //PF[13]
//#define Dummy SIU.GPDO[93].B.PDO          //PF[13]
//#define Dummy SIU.GPDI[94].B.PDI          //PF[14]
//#define Dummy SIU.GPDO[94].B.PDO          //PF[14]
//#define Dummy SIU.GPDI[95].B.PDI          //PF[15]
//#define Dummy SIU.GPDO[95].B.PDO          //PF[15]

/*********************************************
CBDR registers of the EMIOS_0               **                                 
*********************************************/
//#define Dummy EMIOS_0.CH[0].CBDR.R
//#define Dummy EMIOS_0.CH[1].CBDR.R 
//#define Dummy EMIOS_0.CH[2].CBDR.R 
//#define Dummy EMIOS_0.CH[3].CBDR.R 
//#define Dummy EMIOS_0.CH[4].CBDR.R 
//#define Dummy EMIOS_0.CH[5].CBDR.R 
//#define Dummy EMIOS_0.CH[6].CBDR.R 
//#define Dummy EMIOS_0.CH[7].CBDR.R 
//#define Dummy EMIOS_0.CH[8].CBDR.R 
//#define Dummy EMIOS_0.CH[9].CBDR.R 
//#define Dummy EMIOS_0.CH[10].CBDR.R
//#define Dummy EMIOS_0.CH[11].CBDR.R
//#define Dummy EMIOS_0.CH[12].CBDR.R 
//#define Dummy EMIOS_0.CH[13].CBDR.R 
//#define Dummy EMIOS_0.CH[14].CBDR.R 
//#define Dummy EMIOS_0.CH[15].CBDR.R 
//#define Dummy EMIOS_0.CH[16].CBDR.R 
//#define Dummy EMIOS_0.CH[17].CBDR.R 
//#define Dummy EMIOS_0.CH[18].CBDR.R 
//#define Dummy EMIOS_0.CH[19].CBDR.R 
//#define Dummy EMIOS_0.CH[20].CBDR.R 
//#define Dummy EMIOS_0.CH[21].CBDR.R 
//#define Dummy EMIOS_0.CH[22].CBDR.R 
//#define Dummy EMIOS_0.CH[23].CBDR.R 
//#define Dummy EMIOS_0.CH[24].CBDR.R 
//#define Dummy EMIOS_0.CH[25].CBDR.R
//#define Dummy EMIOS_0.CH[26].CBDR.R 
//#define Dummy EMIOS_0.CH[27].CBDR.R    

/*********************************************
FLAG registers of the EMIOS_0               **                                 
*********************************************/  
//#define Dummy EMIOS_0.CH[0].CSR.B.FLAG.
//#define Dummy EMIOS_0.CH[1].CSR.B.FLAG
//#define Dummy EMIOS_0.CH[2].CSR.B.FLAG
//#define Dummy EMIOS_0.CH[3].CSR.B.FLAG
//#define Dummy EMIOS_0.CH[4].CSR.B.FLAG.
//#define Dummy EMIOS_0.CH[5].CSR.B.FLAG
//#define Dummy EMIOS_0.CH[6].CSR.B.FLAG
//#define Dummy EMIOS_0.CH[7].CSR.B.FLAG
//#define Dummy EMIOS_0.CH[8].CSR.B.FLAG.
//#define Dummy EMIOS_0.CH[9].CSR.B.FLAG
//#define Dummy EMIOS_0.CH[10].CSR.B.FLAG
//#define Dummy EMIOS_0.CH[11].CSR.B.FLAG
//#define Dummy EMIOS_0.CH[12].CSR.B.FLAG.
//#define Dummy EMIOS_0.CH[13].CSR.B.FLAG
//#define Dummy EMIOS_0.CH[14].CSR.B.FLAG
//#define Dummy EMIOS_0.CH[15].CSR.B.FLAG
//#define Dummy EMIOS_0.CH[16].CSR.B.FLAG.
//#define Dummy EMIOS_0.CH[17].CSR.B.FLAG
//#define Dummy EMIOS_0.CH[18].CSR.B.FLAG
//#define Dummy EMIOS_0.CH[19].CSR.B.FLAG
//#define Dummy EMIOS_0.CH[20].CSR.B.FLAG.
//#define Dummy EMIOS_0.CH[21].CSR.B.FLAG
//#define Dummy EMIOS_0.CH[22].CSR.B.FLAG
//#define Dummy EMIOS_0.CH[23].CSR.B.FLAG
//#define Dummy EMIOS_0.CH[24].CSR.B.FLAG.
//#define Dummy EMIOS_0.CH[25].CSR.B.FLAG
//#define Dummy EMIOS_0.CH[26].CSR.B.FLAG
//#define Dummy EMIOS_0.CH[27].CSR.B.FLAG
 





#define PWMSERVO EMIOS_0.CH[4].CBDR.R  
#define MOTORD EMIOS_0.CH[6].CBDR.R
#define MOTORI EMIOS_0.CH[7].CBDR.R
#define LIGHT1 EMIOS_0.CH[9].CBDR.R
#define LIGHT2 EMIOS_0.CH[11].CBDR.R
#define LIGHT5 EMIOS_0.CH[13].CBDR.R

#define FLAG2 EMIOS_0.CH[8].CSR.B.FLAG
#define FLAG1 EMIOS_0.CH[23].CSR.B.FLAG

#define ANP0 ADC.CDR[0].B.CDATA
#define ANP1 ADC.CDR[1].B.CDATA
#define ANP2 ADC.CDR[2].B.CDATA
#define ANP3 ADC.CDR[3].B.CDATA
#define ANP4 ADC.CDR[4].B.CDATA
#define ANP5 ADC.CDR[5].B.CDATA
#define ANP6 ADC.CDR[6].B.CDATA


